<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>tooltipster插件使用</title>
        <link rel="stylesheet" href="css/tooltipster.bundle.css" />
        <style>
            .tooltip_template { display:none;width: 600px;height: 400px;background-color: #ccc; }
        </style>
    </head>
    <body>
        <!-- <img src="my-image.png" class="tooltip" title="This is my image's tooltip message!" /> -->

        <span class="tooltip" title="This is my span's tooltip message!">Some text</span>
        <span data-tooltip-content="#tooltip-content" class="tooltip">html提示框</span>
        <div id="tooltips-template" class="tooltip_template"><span id="tooltip-content" class="tooltip-content"><img src="../img/tourism1.png" alt="图片" /><br /><strong>自定义html提示框</strong></span></div>
        <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script src="js/tooltipster.bundle.min.js"></script>
        <script>
        // $(".tooltip").tooltipster();
        $('.tooltip').tooltipster({
           animation: 'fade',
           delay: 200,
           theme: 'tooltipster-punk',
           trigger: 'hover'
        });
        </script>
    </body>
</html>